package cate.game.rank.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBRank;
import cate.game.rank.history.RankReachHistory;
import easy.java.dev.note.NoteField;

import java.util.Map;

@ClientMsg(title = "单个排行榜的奖励领取数据 的 返回")
public class SingleRankRewardDataResp implements MsgOutput {
    @NoteField(value = "奖励领取记录 Map<排行榜表中的奖励Tid, 是否领取>")
    public Map<Integer, Boolean> rewardMap;

    @NoteField(value = "奖励达成记录 Map<排行榜表中的奖励Tid, 奖励记录>")
    public Map<Integer, RankReachHistory> recordMap;

    @NoteField(value = "排行榜id")
    public int rankId;

    public SingleRankRewardDataResp(){

    }

    public SingleRankRewardDataResp(int rankdId, Map<Integer, Boolean> rewardMap, Map<Integer, RankReachHistory> recordMap){
        this.rankId = rankdId;
        this.recordMap = recordMap;
        this.rewardMap = rewardMap;
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBRank.REWARD_DATA_RESP;
    }
}
